package top.hzy520.online.service;

import top.hzy520.online.entity.OnlineUser;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 0:23 2018/9/26
 */
public interface OnlineService {
    int selectAllCount();

    List<OnlineUser> selectAllOnlineUserList(int offset, int limit);

    void saveOnlineUser(String username, String sessionId, HttpServletRequest servletRequest);

    void forceLogout(String sessionId);

    void deleteOnlineUser(List<OnlineUser> onlineUserList);
}
